home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / com / internet / stik / n_play29 / source / n_av_ser.c
C/C++ Source or Header  |  1997-09-10  |  988b  |  38 lines

  1. /*
  2.    This is example of source code for playing sounds via NED PLAYER
  3.    from your program. NED PLAYER must be running as ACC or should
  4.    be running as one of applikations on multitasking systems.
  5.    
  6.    This source code is free. You can use it in your applications
  7.    without any fee. I have no warranty for it.
  8.    
  9.    (C) New Design  -  September 1997 
  10.    
  11.     email: xsumbe00@stud.fee.vutbr.cz
  12.      http://www.stud.fee.vutbr.cz/~xsumbe00  
  13. */   
  14.  
  15. #include <aes.h>
  16.  
  17. #define VA_START 0x4711
  18.  
  19. int main ( void ) {
  20.  
  21.     /* name of sound file you want to play by NED PLAYER */
  22.  
  23.     char *fname="E:\\BEATLES.DVS";
  24.     int msg[8];
  25.     
  26.     msg[0] = VA_START;
  27.     msg[1] = appl_init();
  28.     msg[2] = 0;
  29.     msg[4] = (unsigned int) (((unsigned long)fname << 16) >> 16);
  30.     msg[3] = (unsigned int)  ((unsigned long)fname >> 16);
  31.     
  32.     if (appl_find("N_PLAYER") != -1)
  33.       appl_write(appl_find("N_PLAYER"), 16, msg);
  34.   
  35.     appl_exit();
  36.  
  37.     return 0;
  38. }